C - Count Order